﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum FreezeMoneyDetailState
    {
        /// <summary>
        /// 冻结
        /// </summary>
        Freeze=0,
        /// <summary>
        /// 解冻
        /// </summary>
        Free=1
    }
    public static class FreezeMoneyDetailStateEx
    {
        public static string GetName(this FreezeMoneyDetailState state)
        {
            switch (state)
            { 
                case FreezeMoneyDetailState.Free:
                    return "解冻";
                case FreezeMoneyDetailState.Freeze:
                    return "冻结";
                default:
                    return ((int)state).ToString();
            }
        }
    }
}
